#ifndef GAMERESULTDIALOG_H
#define GAMERESULTDIALOG_H

#include <QDialog>
#include <QString>

#include "score_board.h"

namespace Ui {
class GameResultDialog;
}

class GameResultDialog : public QDialog
{
    Q_OBJECT

public:
    explicit GameResultDialog(QWidget *parent = nullptr);
    ~GameResultDialog();

    void setGameResult(const QString &result);
    void setGameTime(const QString &time);

private:
    Ui::GameResultDialog *ui;

    std::shared_ptr<score_board> opponentScoreBoardPtr_;    /* 对手成绩计分板 */
    std::shared_ptr<score_board> selfScoreBoardPtr_;        /* 玩家自己成绩计分板 */
};

#endif // GAMERESULTDIALOG_H
